﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using CommonLib;

namespace TestCinemaCommonLib.Mock
{
    public class Mock_IGetTimeRange : IActivity
    {
        private TimeRange timeRange;
        public bool Reschedulable { get; set; }

        public Mock_IGetTimeRange(TimeRange timeRange)
        {
            this.timeRange = timeRange;
        }

        #region IGetTimeRange Members

        public TimeRange TimeRange
        {
            get { return timeRange; }
        }

        public DateTime StartTime
        {
            get
            {
                return timeRange.StartTime;
            }
            set
            {
                timeRange = new TimeRange(value, timeRange.EndTime);
            }
        }

        public DateTime EndTime
        {
            get { return timeRange.EndTime; }
        }


        public bool CanReschedule
        {
            get { return Reschedulable; }
        }

        #endregion
    }
}
